@import '~@/assets/css/mixins';

.flink_container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #fff;

  .flink_editor {
    flex: 1;
    position: relative;

    .flink_isLocked{
      width: 100%;
      height: 100%;
      position: absolute;
      cursor: not-allowed;
      top:0;
      left:0;
    }

    .flink_editor_box {
      display: flex;
      width: 100%;
      height: 100%;

      .flink_editor_left {
        flex: 1;

        .flink_editor_center{
          width: 600px;
          margin: 24px 0 24px 24px;
        }
      }
    }
  }

  .flink_panel_header {
    width: 100%;
    height: 48px;
    background-color: #fff;
    border-bottom: 1px solid rgb(0 0 0 / 10%);
    user-select: none;

    .flink_panel_button {
      float: right;
      margin-top: 7px;
      margin-right: 10px;
    }

    dl,
    dt,
    dd {
      float: left;
      color: rgb(0 0 0 / 65%);
      font-size: 14px;
      cursor: pointer;
    }

    dl {
      margin-top: 4px;
      margin-left: 7px;
      padding: 8px 9px;
      dd {
        margin-left: 3px;
      }
    }

    .active_icon {
      background-color: rgb(0 132 255 / 5%);
      dd,
      dt {
        color: #0084ff;
      }
    }
  }

  .flink_right {
    position: relative;
    width: 50px;
    height: 100%;
    background-color: #fff;
    border-left: 1px solid rgb(0 0 0 / 10%);
    .flink_right_span {
      display: block;
      width: 16px;
      margin: 16px 0 16px 17px;
      color: @gray-600;
      cursor: pointer;
      &.on {
        position: relative;
        color: @primary;
        &::before {
          position: absolute;
          top: 0;
          right: -16px;
          width: 3px;
          height: 100%;
          background: @primary;
          border-radius: 2px 0 0 2px;
          content: '';
        }
      }
    }
  }
}

.flow_log {
  position: absolute;
  bottom: 0;
  width: 100%;
}
.disable {
  color: rgb(0 0 0 / 35%) !important;
  cursor: not-allowed !important;

  dl,
  dt,
  dd {
    color: rgb(0 0 0 / 35%) !important;
    cursor: not-allowed !important;
  }
}

.real_time_diff_editor {
  height: 400px;
  border: 1px solid #e5e5e5;
}

.real_time_diff_history {
  display: flex;
  align-items: center;
  height: 40px;
  color: rgb(0 0 0 / 45%);

  span {
    width: 50%;
  }
}

.real_time_props_top_tabs {
  display: flex;
  border-left: 1px solid rgb(0 0 0 / 10%);

  .real_time_props_top_tab {
    display: inline-block;
    height: 0.32rem;
    padding: 0 0.16rem;
    line-height: 0.32rem;
    border-top: 1px solid rgb(0 0 0 / 10%);
    border-right: 0.01rem solid rgb(0 0 0 / 10%);
    border-bottom: 0.01rem solid rgb(0 0 0 / 10%);
    cursor: pointer;
  }

  .real_time_props_top_tab.active {
    color: #0084f1;
    border-bottom: 0.01rem solid #fff;
  }

  .real_time_props_top_flex {
    flex: 1;
    border-bottom: 1px solid rgb(0 0 0 / 10%);
  }
}

.real_time_test_title {
  font-size: 12px;
  line-height: 22px;
}

.real_time_test_body {
  display: flex;
  height: 440px;
  margin-top: 12px;
  border: 1px solid #dbdbdb;
}

.real_time_test_tables {
  width: 200px;
  overflow-y: scroll;
  background: #f5f5f5;
}

.real_time_test_table_name {
  padding-left: 12px;
  font-weight: 700;
  line-height: 32px;
}

.real_time_test_table {
  display: flex;
  align-items: center;
  padding-left: 12px;
  overflow: hidden;
  line-height: 30px;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-left: 4px solid transparent;
  cursor: pointer;

  .anticon_table {
    margin-right: 8px;
    font-size: 18px;
  }
}

.real_time_test_table.active {
  background: rgb(63 135 255 / 7%);
  border-left: 4px solid #0084f1;
}

.real_time_test_table:hover {
  background: rgb(63 135 255 / 7%);
}

.real_time_test_datas {
  flex: 1;
  padding: 0 12px 12px;
  height: 100%;
  overflow-y: auto;
}

.real_time_test_hint {
  line-height: 40px;
}

.real_time_test_upload {
  height: 90px;
  padding: 4px 12px;
  background: #f5f5f5;
  border: 1px dashed #ddd;
  border-radius: 2px;

  a {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
  }
}

.real_time_test_preview {
  height: 270px;

  .hufutable .ant_table_placeholder {
    background: #fff;
  }
}

.real_time_test_right {
  float: right;
  cursor: pointer;
}
